<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //代码执行的上下文
    //指的是代码执行的时候，相关的上下文环境
    //函数的调用栈，this的指向，作用域及作用域中的变量
    var a = 1;
    var b = 2;
    function fn1(){
        var c = 3;
        var d = 4;
        function fn2(){
            var e = 5;
            var f = 6;
            function fn3(){
                var g = 7;
                var h = 8;
            }
            fn3();
        }
        fn2();
    }
    fn1();
</script>
</html>